import * as types from './mutation-type.js';

export default {
  [types.SET_USER_INFO](state, name) {
    state.userInfo = name;
  },
  [types.UPDATE_ISCHECKTOKEN](state, name) {
    state.isCheckToken = name;
  },
  [types.SET_APIHOST](state, name) {
    state.apiHost = name;
  },
  [types.SET_LEFTMENUNAV](state, name) {
    state.leftMenuNav = name;
  },
  [types.SET_USERINFO](state, name) {
    state.userInfo = name;
  },
  [types.SET_LOGINDATA](state, name) {
    state.loginData = name;
  },
  [types.SET_NAME](state, name) {
    state.name = name;
  },
  [types.SET_AGE](state, age) {
    state.age = age;
  },
  [types.SET_SEND_USERINFO](state, send_userinfo) {
    state.send_userinfo = send_userinfo;
  },
  [types.SET_PERSONL](state, personl) {
    state.personl = personl;
  },
  [types.SET_ACTIVEINDEX](state, activeIndex) {
    state.activeIndex = activeIndex;
  },
  [types.SET_NCHANGEDATA](state, changData) {
    state.changData = changData;
  },
  [types.SET_QUERYSEARCH](state, query_search) {
    state.query_search = query_search;
  },
  [types.SET_QUESTIONCHANGE](state, questionChange) {
    state.questionChange = questionChange;
  },
  [types.SET_DELQUESTION](state, delQuestion) {
    state.delQuestion = delQuestion;
  },
  [types.SET_OUTLOGIN](state, flag) {
    state.outlogin = flag;
  },
  [types.SET_TESTNAME](state, flag) {
    state.testName = flag;
  },
  [types.SET_MULTI](state, flag) {
    state.isMulti = flag;
  },
  [types.SET_SCHOOL](state, flag) {
    state.isSchool = flag;
  },
  [types.SET_OPENCLASSTIME](state, flag) {
    state.openClassTime = flag;
  },
  [types.SET_WEBRTCFLAG](state, flag) {
    state.isSupportWebRtc = flag
  },
  [types.SET_ALLOWNINEFLAG](state, flag) {
    state.isAllowNine = flag
  }
};
